<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

function get_notifications($user_id) {
    // receiver_id = -1 is a broadcast notification???
    $query = "SELECT n.id, n.sender_id, n.receiver_id, n.ref_id, n.type_id, n.response, n.message, n.timestamp
                FROM notifi
                WHERE n.receiver_id = '$user_id'
                OR n.receiver_id = -1";
}

function add_notification ($user_id) {
    $query = "INSERT INTO ()";
}

?>
